package com.design_pattern.singleton;

public class SingletonB {
    private static SingletonB singletonB = null;
    private SingletonB(){

    }

    public SingletonB getInstance(){
        if (singletonB==null){
            singletonB = new SingletonB();
        }
        return singletonB;
    }
}
